const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/index.vue'),
    meta: {
      title: '首页',
      showWindowBar: true,
    },
  },
  {
    path: '/category',
    name: 'Category',
    component: () => import('@/views/category/index.vue'),
    meta: {
      title: '分类',
      showWindowBar: true,
    },
  },
  {
    path: '/game',
    name: 'Game',
    component: () => import('@/views/game/index.vue'),
    meta: {
      title: '游戏',
      showWindowBar: true,
    },
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import('@/views/mine/index.vue'),
    meta: {
      title: '我的',
      showWindowBar: true,
    },
  },
 {
    path: '/category/Apparel',
    name: 'Apparel',
    component: () => import('@/views/Apparel/index.vue'),
    meta: {
      title: 'Apparel',
      showWindowBar: true,
    },
  },
  {
    path: '/category/Accessories',
    name: 'Accessories',
    component: () => import('@/views/Accessories/index.vue'),
    meta: {
      title: 'Accessories',
      showWindowBar: true,
    },
  },
  {
    path: '/category/Digital',
    name: 'Digital',
    component: () => import('@/views/Digital/index.vue'),
    meta: {
      title: 'Digital',
      showWindowBar: true,
    },
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: 'login',
      showWindowBar: true,
    },
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('@/views/register/index.vue'),
    meta: {
      title: 'register',
      showWindowBar: true,
    },
  },
  {
    path: '/goodsDetail',
    name: 'GoodsDetail',
    component: () => import('@/views/goodsDetail/index.vue'),
   
    meta: {
      title: '商品详情',
      showWindowBar: true,
    },
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import('@/views/Cart/index.vue'),
    meta: {
      title: '购物车',
      showWindowBar: true,
    },
  },
  {
    path: '/user',
    name: 'Shop_user',
    component: () => import('@/views/user/index.vue'),
    meta: {
      title: '账号中心',
      showWindowBar: true,
    },
  },
 {
    path: '/checkout',
    name: 'Checkout',
    component: () => import('@/views/checkoutCounter/index.vue'),
    meta: {
      title: '收银台',
      showWindowBar: true,
    },
  },
  {
    path: '/theme',
    name: 'theme',
    component: () => import('@/views/theme/index.vue'),
    meta: {
      title: '主题风格',
    },
  },
  // Test
  {
    path: '/test',
    component: () => import('@/views/test/index.vue'),
    meta: {
      title: '测试',
    },
  },
  // exception
  {
    path: '/reload',
    component: () => import('@/views/exception/reload.vue'),
    meta: {
      title: '加载异常',
    },
  },
  {
    path: '/404',
    component: () => import('@/views/exception/404.vue'),
    meta: {
      title: '找不到页面',
    },
  },
  // 404 Not found
  { path: '/:path(.*)*', redirect: '/404' },
];

export default routes;
